import random

son = 'ounkmaster.aif'
info = getSoundInfo(son)

example = 1

if example == 1:
    setGlobalDuration(info[2])
    playSound(sound=son, amplitude=1)

elif example == 2:
    setGlobalDuration(info[2]*2)
    playSound(sound=son, loop=True, amplitude=1)

elif example == 3:
    setGlobalDuration(info[2]*2)
    playSound(sound=son, loop=True, pitch=[0.995,1,1.005], amplitude=1)

elif example == 4:
    setGlobalDuration(info[2]*2)
    randomh(bus=['p1','p2','p3'], mini=.25, maxi=2, rate=[4,5,6])
    playSound(sound=son, loop=True, amplitude=1, pitchVar=['p1','p2','p3'], out='snd')
    randomi(bus='cut', mini=.05, maxi=1, rate=.5)
    bandpass(input='snd', cutoff=4000, bandwidth=1000, cutoffVar='cut', bandwidthVar='cut')

startCsound()